package com.youaishujuhui.devops.web.domain.manage;

import java.util.Date;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.EL;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Prev;
import org.nutz.dao.entity.annotation.Table;

import lombok.Getter;
import lombok.Setter;

@Table("t_sys_audit_log")
@Getter
@Setter
public class SysAuditLog {
	
	@Id
	@Comment("日志id")
	private int logId;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("操作的用户工号")
	private String userName;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("模块")
	private String module;
	
	@Column
	@ColDefine(notNull = true)
	@Comment("操作")
	private String oper;
	
	@Column
	@ColDefine(notNull = true, customType = "text")
	@Comment("参数")
	private String args;
	
	@Column
	@Comment("是否成功")
	private boolean isSuc;
	
	@Column
	@ColDefine(notNull = false, customType = "text")
	@Comment("异常信息")
	private String error;

    @Column
    @Prev(els = @EL("now()"))
    @Comment("操作时间")
    private Date operTime;
}
